<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 13585
  Date: 2020/12/23
  Time: 21:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/index.css">
</head>
<body>
<div id="announce">
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>编号</th>
            <th>添加时间</th>
            <th>内容</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${lists}" var="announce" varStatus="vs">
            <tr>
                <td>${vs.count}</td>
                <td>${announce.createtime}</td>
                <td>${announce.content}</td>
                <td>
                    <div class="layui-btn-group">
                        <a href="queryAnnounce?id=${announce.id}" class="layui-btn layui-btn-xs">修改</a>
                        <a href="delAnnounce?id=${announce.id}" class="layui-btn layui-btn-xs" onclick="return confirm('你确定要删除吗,删除后将不能恢复')">删除</a>
                    </div>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
<script type="text/javascript" src="layui/layui.js"></script>
</body>
</html>
